import request from '@/utils/request'
// import axios from 'axios'
import { apiVersion } from '@/config'

// 获取详情
export function getModelVersionDetail(data) {
    return request({
        url: `/admin/${apiVersion}/modelVersion/${data.id}`,
        method: 'get',
        data
    })
}
// 分页列表
export function getModelVersions(data) {
    return request({
        url: `/admin/${apiVersion}/modelVersion`,
        method: 'get',
        data
    })
}
// 删除
export function delModelVersion(data) {
    return request({
        url: `/admin/${apiVersion}/modelVersion/${data.id}`,
        method: 'delete',
        data
    })
}
// 创建
export function addModelVersion(data) {
    return request({
        url: `/admin/${apiVersion}/modelVersion`,
        method: 'post',
        data
    })
}
// 修改
export function putModelVersion(data) {
    return request({
        url: `/admin/${apiVersion}/modelVersion`,
        method: 'put',
        data
    })
}

// 查询列表
export function getAllModelVersions(data) {
    return request({
        url: `/admin/${apiVersion}/modelVersion/all`,
        method: 'get',
        data
    })
}
